package com.yuantu.judiciary.service;

import com.yuantu.judiciary.model.dto.SearchRecordContentDTO;
import com.yuantu.judiciary.model.enums.SearchType;
import com.yuantu.judiciary.model.form.AddSearchRecordForm;

import java.util.List;

/**
 * 搜索记录接口
 *
 * @author syw
 * @since 2023-07-07
 **/
public interface ISearchRecordService {

    /**
     * 添加搜索记录
     */
    Boolean add(Long userId, AddSearchRecordForm form);

    List<SearchRecordContentDTO> listLimit(Long userId, SearchType type);

    Boolean deleteAll(Long userId, SearchType type);

    String verify(Long accountId, AddSearchRecordForm form);

    List<SearchRecordContentDTO> hotSearch();
}
